package com.ias.train.common;

/**
 * @program: train
 * @description: 异常警告类
 * @author: Daniel Shen
 * @create: 2022-04-23 15:26
 */
public class MessageWarnException extends MessageException {
    private String type;

    public MessageWarnException(MessageStatusCode messageStatusCode) {
        super(messageStatusCode);
        this.type = MessageStatusType.WARN.getType();
    }

    public MessageWarnException(MessageStatusCode messageStatusCode, String message) {
        super(messageStatusCode, message);
        this.type = MessageStatusType.WARN.getType();
    }

    public String getType() {
        return this.type;
    }
}
